﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ProxyFinder.Strategies;
using SoftwareApproach.TestingExtensions;

namespace ProxyFinder.Tests {
    [TestClass]
    public class UserPromptCredentialStrategyTests {
        [TestMethod]
        public void UserPromptCredentialStrategy_Create() {
            new UserPromptCredentialStrategy(new WindowsCredentialProvider()).ShouldNotBeNull();
        }

        [TestMethod]
        public void UserPromptCredentialStrategy_Create_ShouldThrowException_OnNullCredentialProvider() {
            Testing.ShouldThrowException<ArgumentNullException>(() => new UserPromptCredentialStrategy(null));
        }
    }
}
